<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变形 Deformation</title>
    <style>
        div {
            display: inline-block;
            width: 200px;
            height: 200px;
            margin: 20px;
            padding: 20px;
            transition: 2s;
            color: rgb(110, 92, 92);
            background-color: rgb(167, 167, 223);
        }

        .x_translate:hover {
            background-color: rgb(98, 184, 184);
            transition: 2s;
            transform: translateX(200px);
        }

        .y_translate:hover {
            background-color: rgb(98, 184, 184);
            transition: 2s;
            transform: translateY(200px);

        }

        .xy_translate:hover {
            background-color: aqua;
            transition: 2s;
            transform: translate(200px, 200px)
        }

        .rotate_l:hover {
            background-color: antiquewhite;
            transition: 2s;
            transform: rotate(-1800deg);
        }

        .rotate_r:hover {
            background-color: antiquewhite;
            transition: 2s;
            transform: rotate(1800deg);
        }

        .x_scale:hover {
            background-color: rgb(235, 31, 174);
            transition: 2s;
            transform: scaleX(1.5);
        }

        .y_scale:hover {
            background-color: rgb(235, 31, 174);
            transition: 2s;
            transform: scaleY(0.5);
        }

        .xy_scale:hover {
            background-color: rgb(235, 31, 174);
            transition: 2s;
            transform: scale(1.5, 0.5);
        }

        .x_skew:hover {
            background-color: rgb(235, 31, 174);
            transition: 2s;
            transform: skewX(45deg);
        }

        .y_skew:hover {
            background-color: rgb(235, 31, 174);
            transition: 2s;
            transform: skewY(45deg);
        }

        .xy_skew:hover {
            background-color: rgb(235, 31, 174);
            transition: 2s;
            transform: skew(15deg, 30deg);
        }
    </style>
</head>

<body>
    <div class="rotate_l">向左旋转</div>
    <div class="rotate_r">向右旋转</div>
    <div class="x_translate">沿着X轴移动</div>
    <div class="y_translate">沿着Y轴移动</div>
    <div class="xy_translate">沿着XY轴移动</div>
    <div class="x_scale">放大</div>
    <div class="y_scale">缩小</div>
    <div class="xy_scale">沿着XY轴伸缩</div>
    <div class="x_skew">X轴倾斜</div>
    <div class="y_skew">Y轴倾斜</div>
    <div class="xy_skew">基于XY轴倾斜</div>
</body>

</html>